﻿using EntityFrameworkCore.Comment;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Test.Database
{
    /// <summary>
    /// 传统注释2
    /// </summary>
    [Comment("注释 of Teacher")]
    public class Teacher
    {
        /// <summary>
        /// 传统注释3
        /// </summary>
        [Comment("注释 of Id")]
        [Description("Description here")]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [Comment("注释 of Name")]
        public string Name { get; set; }

        [Comment("注释 of Age")]
        public int Age { get; set; }
    }
}
